{if $params.action=="index"}

	<div class="tags">
		{foreach from=$TagsCloud item=item}
			<span><a href="{$cnf.baseurl}/tags/view/tagid/{$item.tagid}/" style="font-size:{ceil(log($item.score+1,1.20))+6}px">{$item.tagname}</a></span>
		{/foreach}
	</div>

{/if}


{if $params.action=="view"}

	{if $MvcInfo.resourcetxt}
		<div>{$MvcInfo.resourcetxt}</div>
	{/if}
	
	<div>тег: <b>{$TagInfo.tagname}</b> <a href="{$cnf.baseurl}/tags/">{$translate->_("Все теги")}</a></div>

	{if $SearchResults}
	
		{include file="default/helpers/paginator.tpl"}
	
		<div>{$smarty.capture.Paginate}</div>

		<ol class="Search" start="{$Paginator->itemCountPerPage*($Paginator->current-1)+1}">
			{foreach from=$SearchResults item=data}
				<li>
					<div class="SearchHead"><b><a href="{$cnf.baseurl}{$data.fullpath}{$data.resourceid}.html">{$data.resourcename}</a></b></div>
					<div class="SearchText">{$data.resourcedescr}</div>
					<div class="SearchLink"><a href="{$cnf.baseurl}{$data.fullpath}{$data.resourceid}.html">http://{$smarty.server.HTTP_HOST}{$cnf.baseurl}{$data.fullpath}{$data.resourceid}.html</a></div>
				</li>
			{/foreach}
		</ol>
		
		<div>{$smarty.capture.Paginate}</div>
	
	{/if}

{/if}